package cup.com.icss.dao;

import cup.com.icss.model.User;
import cup.com.icss.model.UserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(String studentId);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(String studentId);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    User loginValidation(User record);
    
    int updatePassWord(User record);
    
    List<User> selectUserList(@Param("start") int pageNum, @Param("count") int pageSize,@Param("user") User record);
    
    List<User> selectUserListSize(User record);
    
    List<User> peopleInformation(@Param("start") int pageNum, @Param("count") int pageSize,@Param("t") User record);
    
    List<User> peopleInformationSize(User record);
}